package com.job.Gai_Yian.Homework0705;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-07 12:44:28
 */
public class Chicken {
    public static void main(String[] args){
        for (int a=0;a<100;a++){
            for (int b=0;b<100;b++){
                for (int c=0;c<100;c++){
                    if ((a+b+c==100)&&(a*3+b*5+c/3==100)){
                        System.out.println("公鸡买"+a+"只");
                        System.out.println("母鸡买"+b+"只");
                        System.out.println("小鸡买"+c+"只");
                    }
                }
            }
        }
    }
}
